import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    accessToken:localStorage.getItem('accessToken') || '',
    myInfo:JSON.parse(localStorage.getItem('myInfo')) || {},
  },
  getters: {
  },
  mutations: {
    updateMyInfo(state) {
      state.myInfo = JSON.parse(localStorage.getItem('myInfo')) || {}
  }
  },
  actions: {
  },
  modules: {
  }
})
